﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace DreamCMS.Entity.Common
{
    #region ////////////用户相关//////////////////////
    /// <summary>
    /// 用户类型
    /// </summary>
    public enum UserType
    {
        Admin = 1, //管理员
        Member = 2 //普通会员
    }
    /// <summary>
    /// 用户状态
    /// </summary>
    public enum UserStatus
    {
        Normal = 1, //正常
        Wait = 2,  //待审核
        Lock = 3  //已锁定
    }
    #endregion

    #region/////////////////////////栏目相关////////////////////////

    /// <summary>
    /// 栏目类型（注意：标签和栏目共用了Terms表，因此有栏目类别和标签的区别）
    /// </summary>
    public enum CatType
    {
        MainCat = 1, //主要类别
        SubCat = 2, //子类别
        Tag = 3 //标签
    }
    #endregion

    #region/////////////////////文章相关///////////////////////

    /// <summary>
    /// 文章的评论开启状态
    /// </summary>
    public enum PostCommentStatus
    {
        Open = 1, //开启评论
        Close = 0  //关闭评论
    }
    /// <summary>
    /// 文章发布状态
    /// </summary>
    public enum PostStatus
    {
        Other=-1,
        /// <summary>
        /// 草稿
        /// </summary>
        Draft = 0,

        /// <summary>
        /// 发布
        /// </summary>
        Published = 1,
    }
    /// <summary>
    /// 文章内容展示类型
    /// </summary>
    public enum ContentShowType
    {
        OnlyTitle = 1,
        OnlySummary = 2,
        Begin200 = 3,
        MainContent = 4
    }
    /// <summary>
    /// 文章URl形式
    /// </summary>
    public enum PostUrlFormate
    {
        DefaultId = 0, //ID
        Date = 1, //日期
        Slug = 2 //别名
    }
    /// <summary>
    /// 文章推荐与否
    /// </summary>
    public enum PostRecommend
    {
        Other = -1,
        NotRec = 0,//不推荐
        Rec = 1 //推荐
    }
    /// <summary>
    /// 文章置顶与否
    /// </summary>
    public enum PostTopStatus
    {
        Other = -1,
        Top = 1,
        NoTop = 0 //不置顶
    }
    /// <summary>
    /// 文章隐藏与否
    /// </summary>
    public enum PostHideStatus
    {
        Other = -1,
        Hide = 1,
        NoHide = 0 //不隐藏
    }
    #endregion

    #region////////////////站点设置相关////////////////////////////

    /// <summary>
    /// 访问统计的统计方法
    /// </summary>
    public enum SiteRecordType
    {
        ByReFresh = 1,//根据刷新次数
        By24Ours = 2 //根据24小时记作一次
    }

    /// <summary>
    /// 站点状态
    /// </summary>
    public enum SiteStatus
    {
        Closed = 0, //关闭站点
        OpenIt = 1  //开启站点
    }
    /// <summary>
    /// 验证码开关状态
    /// </summary>
    public enum SiteVerify
    {
        Closed=0, //关闭验证码
        OpenIt=1
    }
    #endregion

    #region///////////////////评论相关///////////
    /// <summary>
    /// 邮箱验证状态
    /// </summary>
    public enum Emailnotify
    {
        Other=-1, //不管这个条件
        No=0,//未验证
        Yes=1//已验证
    }

    /// <summary>
    /// 评论审核状态
    /// </summary>
    public enum CommentApprovedStatus
    {
        Other=-1,//不管这个条件
        /// <summary>
        /// 未审核
        /// </summary>
        Wait = 0,
        /// <summary>
        /// 已通过
        /// </summary>
        Success = 1
    }
    /// <summary>
    /// 评论审核与否的设置（全站设置）
    /// </summary>
    public enum SiteCommentApproveType
    {
        No = 0, //不需要
        Yes = 1,//要审核
        Auto=2//自动审核
    }
    #endregion

    #region ////////链接相关//////////////////
    /// <summary>
    /// 链接类型
    /// </summary>
    public enum LinkType
    {
        ImageLink = 1,//图形链接
        TextLink = 2 //文本链接
    }
    /// <summary>
    /// 链接位置
    /// </summary>
    public enum LinkPosition
    {
        Index = 1,//首页
        SubPage = 2 //内页
    }
    /// <summary>
    /// 链接状态
    /// </summary>
    public enum LinkStatus
    {
        Open = 1, //打开
        Close = 0
    }
    #endregion

}
